//
//  RollingCell.swift
//  CompareBuying
//
//  Created by 唐先才 on 16/2/2.
//  Copyright © 2016年 唐先才. All rights reserved.
//

import UIKit
//基于UICollectionView的item的滚动视图
class RollingCell: UICollectionViewCell {
    
    @IBOutlet weak var iconView: UIImageView!
    @IBOutlet weak var iconLabel: UILabel!
    
    
    func configCellWithModel(model: TxcModel) {
        guard let iconImg = model.ProImage, name = model.ProName else {
            print("rollingCell赋值失败")
            return
        }
        iconView.sd_setImageWithURL(NSURL(string: iconImg))
        iconLabel.text = name
    }
    
    
    
    override func awakeFromNib() {
        super.awakeFromNib()
        // Initialization code
    }

}
